package cn.kgc.service.impl;

import cn.kgc.entity.AQIndex;
import cn.kgc.entity.District;
import cn.kgc.mapper.DistrictMapper;
import cn.kgc.service.DistrictService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("districtService")
public class DistrictServiceImpl implements DistrictService {
    @Resource
    private DistrictMapper districtMapper;

    @Override
    public List<District> selectDisAndAQ(String name) {
        List<District> districtList = districtMapper.selectDiAndAQ(name);
        return districtList;
    }

    @Override
    public int addAQ(AQIndex aqIndex) {
        int result = districtMapper.addAQ(aqIndex);
        return result;
    }

    @Override
    public AQIndex findBYID(int id) {
        return districtMapper.findBYID(id);
    }

    @Override
    public int updateAQ(AQIndex aqIndex) {
        return districtMapper.updateAQ(aqIndex);
    }
}
